<?php 
   require_once('config.php');
   $vid_id = getValue('id','int','POST');
   $vid_name = getValue('vid_name','str','POST','');
   if($vid_id > 0){
      $sql_update = "UPDATE video SET vid_name ='" . $vid_name . "' WHERE vid_id = " . $vid_id;
      $db_exe = new db_execute($sql_update);
      echo $db_exe->rows_affected;
      unset($db_exe);
   }
?>